import axios from '~/axios'
import { queryParams } from "~/composables/util"
export function login(data){
    return axios.post("/register/userlogin",data)
}


// 组织信息

export function orginfo(orgid){
    return axios.get(`/personal/orginfo/${orgid}`)
}
// 个人信息
export function perinfo(userid){
    return axios.get(`/personal/perinfo/${userid}`)
}
// 完善个人信息
export function gruser(data){
    return axios.post(`/register/gruser`,data)
}

// 完善组织信息
export function grorganization(data){
    return axios.post(`/register/grorganization`,data)
}


// 获取验证码
export function getCode(phone){
    return axios.get(`/register/sendsms/${phone}`)
}
// 获取图片验证码
export function getCaptcha(){
    return axios.get(`/register/getCaptcha`)
}
// 注册
export function register(data){
    return axios.post(`/register/register`,data)
}

// 退出登录
export function logout(data){
    return axios.post("/register/logout",data)
}


// 我的智斗
export function points(id){
    return axios.get(`/personal/points/${id}`)
}

// 历史积分
export function pointshistory(id){
    return axios.get(`/personal/pointshistory/${id}`)
}

// 三月统计
export function threemonth(id){
    return axios.get(`/personal/threemonth/${id}`)
}

// 我的订单
export function selorder(data){
    return axios.post("/personal/selorder",data)
}

// 我的好课
export function selclass(data){
    return axios.post("/personal/selclass",data)
}

// 个人用户上传课程信息
export function insercarefullive(data){
    return axios.post("/yunclass/insercarefullive",data)
}

// 我的文库
export function sellibrary(data){
    return axios.post("/personal/sellibrary",data)
}

// 上传我的文库
export function inserlibrary(data){
    return axios.post("/library/inserlibrary",data)
}




